extends IEventActuator


class_name MultiActuator
"""
同时触发多个事件
"""


## 需要触发的事件列表
@export var event_actuators: Array[IEventActuator] = []


func __check_exports() -> Dictionary:
    return IComponent.merge({
        "event_actuators": IComponent.find_children.bind(self, func(x): return x is IEventActuator, event_actuators),
    }, super.__check_exports())

func execute() -> void:
    for e in event_actuators:
        IEventActuator.safe_execute(e)
